using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._GeostatisticalAnalystTools._WorkingwithGeostatisticalLayers
{
    /// <summary>
    /// <para>Get Model Parameter</para>
    /// <para>Gets model parameter value from an existing geostatistical model source.</para>
    /// <para>从现有地统计模型源获取模型参数值。</para>
    /// </summary>    
    [DisplayName("Get Model Parameter")]
    public class GAGetModelParameter : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GAGetModelParameter()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_ga_model_source">
        /// <para>Input geostatistical model source</para>
        /// <para>The geostatistical model source to be analyzed.</para>
        /// <para>要分析的地统计模型源。</para>
        /// </param>
        /// <param name="_model_param_xpath">
        /// <para>Parameter XML Path</para>
        /// <para>XML path to the required model parameter.</para>
        /// <para>所需模型参数的 XML 路径。</para>
        /// </param>
        public GAGetModelParameter(object _in_ga_model_source, object _model_param_xpath)
        {
            this._in_ga_model_source = _in_ga_model_source;
            this._model_param_xpath = _model_param_xpath;
        }
        public override string ToolboxName => "Geostatistical Analyst Tools";

        public override string ToolName => "Get Model Parameter";

        public override string CallName => "ga.GAGetModelParameter";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_ga_model_source, _model_param_xpath, _out_param_value];

        /// <summary>
        /// <para>Input geostatistical model source</para>
        /// <para>The geostatistical model source to be analyzed.</para>
        /// <para>要分析的地统计模型源。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input geostatistical model source")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_ga_model_source { get; set; }


        /// <summary>
        /// <para>Parameter XML Path</para>
        /// <para>XML path to the required model parameter.</para>
        /// <para>所需模型参数的 XML 路径。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Parameter XML Path")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _model_param_xpath { get; set; }


        /// <summary>
        /// <para>Parameter value</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Parameter value")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_param_value { get; set; }


        public GAGetModelParameter SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}